/*
 * @Description: 打卡相关API
 * @Version: 1.0
 * @Author: Yuanjy
 * @Date: 2020-04-12 22:12:56
 * @LastEditors: Yuanjy
 * @LastEditTime: 2020-05-29 15:11:56
 */
import createAPI from '@/utils/axios'

const punch = {
  // 打卡信息
  punch: {
    // 获取用户当天的饮食打卡详情
    getDietInfo: config => createAPI('/admin/v1/punch/diet-info', 'GET', config),
    // 获取用户可评分的列表
    getScoreItem: config => createAPI('/admin/v1/punch/score-item', 'GET', config),
    // 对饮食的评价
    evaluateDiet: config => createAPI('/admin/v1/punch/evaluate-diet', 'POST', config),
    // 回复用户的消息
    replyUser: config => createAPI('/admin/v1/punch/reply-user', 'POST', config),
    // 对一天的饮食评价
    evaluateDay: config => createAPI('/admin/v1/punch/evaluate-day', 'POST', config),
    // 修改体重记录
    modifyWeight: config => createAPI('/admin/v1/punch/modify-weight', 'POST', config),
    // 去除需要评论的信息
    delComment: config => createAPI('/admin/v1/punch/del-comment', 'PUT', config),
  },
}

export default punch
